package cn.thinkluck.pattern.decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * 装饰器2
 * @Author liutao
 * @DateTime 2024/7/21 下午1:30
 */
@Slf4j
public class ComponentDecorator2 extends ComponentDecorator {
    public ComponentDecorator2(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        log.info("前置处理---第{}次包装", 2);
        super.operation();
        log.info("后置处理---第{}次包装", 2);
    }
}
